import request from '@/utils/request'

// 查询支付订单（支付流水信息）列表
export function listCwPayOrder(query) {
  return request({
    url: '/affairs/cwPayOrder/list',
    method: 'get',
    params: query
  })
}

// 查询支付订单（支付流水信息）详细
export function getCwPayOrder(id) {
  return request({
    url: '/affairs/cwPayOrder/' + id,
    method: 'get'
  })
}

// 新增支付订单（支付流水信息）
export function addCwPayOrder(data) {
  return request({
    url: '/affairs/cwPayOrder',
    method: 'post',
    data: data
  })
}

// 修改支付订单（支付流水信息）
export function updateCwPayOrder(data) {
  return request({
    url: '/affairs/cwPayOrder',
    method: 'put',
    data: data
  })
}

// 删除支付订单（支付流水信息）
export function delCwPayOrder(id) {
  return request({
    url: '/affairs/cwPayOrder/' + id,
    method: 'delete'
  })
}
